import { translateTitle } from '@/utils/i18n'
const OrganizationApply = {
  OrganizationApply: {
    search: {
      form: {
        method: 'sysOrganizationServiceImpl.queryTable',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'NAME',
            label: translateTitle('Dams.ApplicationInterface.组织机构名称'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'ORG_ID',
            label: translateTitle('Dams.ApplicationInterface.机构类型编号'),
            labelHidden: false,
            disabled_edit: true,
            isRules: true,
          },
          {
            type: 'input',
            name: 'NAME',
            label: translateTitle('Dams.ApplicationInterface.名称'),
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'input',
            name: 'ADDRESS',
            label: translateTitle('Dams.ApplicationInterface.地址'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'ICON_NAME',
            label: translateTitle('Dams.ApplicationInterface.机构图标地址'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'ADD_USER_NAME',
            label: translateTitle('Dams.ApplicationInterface.新增人'),
            labelHidden: false,
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'ADDTIME',
            label: translateTitle('Dams.ApplicationInterface.新增时间'),
            labelHidden: false,
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'EDIT_USER_NAME',
            label: translateTitle('Dams.ApplicationInterface.编辑人'),
            labelHidden: false,
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'EDITTIME',
            label: translateTitle('Dams.ApplicationInterface.编辑时间'),
            labelHidden: false,
            hidden: true,
            value: '',
          },
          {
            type: 'input',
            name: 'AVAILABLE',
            label: translateTitle('Dams.ApplicationInterface.是否可用'),
            labelHidden: false,
            hidden: true,
            value: '1',
          },
          {
            type: 'input',
            name: 'ACTIVE_FLAG',
            label: translateTitle('Dams.ApplicationInterface.是否激活'),
            labelHidden: false,
            hidden: true,
            value: '1',
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    deleteMethod: 'sysOrganizationServiceImpl.deleteOrg',
    updateMethod: 'sysOrganizationServiceImpl.update',
    addMethod: 'sysOrganizationServiceImpl.save',
  },
}
export default OrganizationApply
